class tree.ui.CheckButton extends tree.ui.Widget
    
    constructor: (text) ->
        super
        @htmlelem = document.createElement 'form'
        @htmlelem.className = 'tree-check-button'
        @check = document.createElement 'input'
        @check.value = text
        @check.name = 'tree-standard'
        @label = document.createElement 'label'
        @label.innerHTML = text
        @check.type = 'checkbox'
        
    @is_checked: () ->
        @htmlelem.checked
        
